﻿@model IEnumerable<ModuleDto>


@Html.Extra()
@{
    var data = Model.OrderBy(x=>x.SortIndex).ToList();

    //神舟试驾报名别克西南特例

}
@for (int i = 0; i < data.Count(); i++)
{
<ul data-id="@i" class=@(i == 0 ? "" : "hide")>
    @{
        var childs = data[i].Childs.OrderBy(x => x.SortIndex).ToList();

        if (childs.Count > 0)
        {
            foreach (var item in childs)
            {
                <li key="@item.Id" name="@item.Name" url="@item.CommandArgument">
                    <a href="#">@item.Name</a>
                </li>
            }
        }
    }
</ul>
}